package com.supergdtop.www.run.tools;

/**
 * 性别相关工具
 * Created by Asum on 2016/7/15 0015.
 */
public class SexTools {
    public static int stringToNum(String sexString) {
        if (sexString == null) {
            sexString = "";
        }
        int sex = 0;

        if (sexString.equals("先生")) {
            sex = 1;
        } else if (sexString.equals("女士")) {
            sex = 2;
        } else if (sexString.equals("保密")) {
            sex = 0;
        }

        return sex;
    }
}
